﻿using Customer.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Customer.Infrstructre.ProcurementManager
{

    /// <summary>
    /// 退货仓储接口
    /// </summary>
    public class RefundRepository :BaseRepository<Refund>, IRefundRepository
    {
        public RefundRepository(EFCoreDBcontext db):base(db) { }

        public async Task<int> AddAsync(Refund entity)
        {
            return await base.AddAsync(entity);
        }



        /// <summary>
        /// (销售/采购)退货  
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public async Task<int> Refund(Refund entity)
        {
            return await base.DelAsync(entity);
        }
        /// <summary>
        /// 退货显示
        /// </summary>
        /// <returns></returns>
        public async Task<List<Refund>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }




    }
}
